// 系统配置拦截器

import http from "@/api/http";

export class SettingsService {
    /**
     * 获取ICP配置
     * @returns {Promise<AxiosResponse<any>>}
     * @constructor
     */
    static GetICPConfig() {
        return http({
            url: '/api/config/get_icp_config',
            method: 'post'
        })
    }

    /**
     * 修改ICP配置
     * @param query
     * @returns {Promise<AxiosResponse<any>>}
     * @constructor
     */
    static ModifyICPConfig(query) {
        return http({
            url: '/api/config/modify_icp_config',
            data: query,
            method: 'post'
        })
    }

    /**
     * 获取公安备案配置
     * @returns {Promise<AxiosResponse<any>>}
     * @constructor
     */
    static GetGaBAConfig() {
        return http({
            url: '/api/config/get_gaba_config',
            method: 'post'
        })
    }

    /**
     * 修改公安备案配置
     * @param query
     * @returns {Promise<AxiosResponse<any>>}
     * @constructor
     */
    static ModifyGaBAConfig(query) {
        return http({
            url: '/api/config/modify_gaba_config',
            data: query,
            method: 'post'
        })
    }
}
